<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/6/25
  Time: 12:59
  To change this template use File | Settings | File Templates.
--%>
function check(){
if(form1.id.value=="")
{alert ("no id!");
form1.id.focus();
return false;}
if(form1.name.value=="")
{alert("no name!");
form1.name.focus();
return false;}
if(form1.author.value=="")
{
alert("no author!");
form1.author.focus();
return false;

}
if(form1.press.value=="")
{
alert("no press!");
form1.press.focus();
return false;
}
if(form1.date.value==""){
alert("no date!")
form1.date.focus();
return false;
}
}

